package com.catchu.pattern.creational.构造器模式.bill;

/**
 * 订单类
 */
public class Order {

    /**
     * 产品名称
     */
    private String productName;
    /**
     * 产品单价
     */
    private int unitPrice;
    /**
     * 订单类型，0为国内订单，1为国际订单
     */
    private int orderType;
    /**
     * 用户是否为VIP
     */
    private boolean isVIP;

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public int getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(int unitPrice) {
        this.unitPrice = unitPrice;
    }

    public int getOrderType() {
        return orderType;
    }

    public void setOrderType(int orderType) {
        this.orderType = orderType;
    }

    public boolean isVIP() {
        return isVIP;
    }

    public void setVIP(boolean VIP) {
        isVIP = VIP;
    }

    public Order(String productName, int unitPrice, int orderType, boolean isVIP) {
        this.productName = productName;
        this.unitPrice = unitPrice;
        this.orderType = orderType;
        this.isVIP = isVIP;
    }
}
